package l1j.server.server.templates;

public class GameConfig {

	
	private boolean 關電視;
	private boolean 組隊資訊;
	private boolean PVP公告;
	private boolean 武器特效;
	private boolean 卷軸對人;
	private boolean 血條倍率;
	private int[] _type;
	
	public GameConfig(){
		_type = new int[6];
		關電視 = true;
		組隊資訊 = true;
		PVP公告 = true;
		武器特效 = true;
		卷軸對人 = true;
		血條倍率 = true;
	}
	
	public int[]getValue(){
		return _type;
	}
	
	public void setTV(final int type){
		if(type ==0){
			關電視 = true;
		}else{
			關電視 = false;
		}
		_type[0] = type;
	}
	
	public boolean isTVon(){
		return 關電視;
	}
	
	public void setPartyIfo(final int type){
		if(type ==0){
			組隊資訊 = true;
		}else{
			組隊資訊 = false;
		}
		_type[1] = type;
	}
	
	public boolean isPartyIfo(){
		return 組隊資訊;
	}

	public void setPVPIfo(final int type){
		if(type ==0){
			PVP公告 = true;
		}else{
			PVP公告 = false;
		}
		_type[2] = type;
	}
	public boolean isPVPIfo(){
		return PVP公告;
	}
	
	public void setWeaponEffect(final int type){
		if(type ==0){
			武器特效 = true;
		}else{
			武器特效 = false;
		}
		_type[3] = type;
	}
	
	public boolean isMagicScroll(){
		return 卷軸對人;
	}
	
	public void setMagicScroll(final int type){
		if(type ==0){
			卷軸對人 = true;
		}else{
			卷軸對人 = false;
		}
		_type[4] = type;
	}
	
	public boolean isWeaponEffect(){
		return 武器特效;
	}
	
	/**縮小血條倍率*/
	public boolean isHpBarRateX10(){
		return 血條倍率;
	}
	
	public void setHpBarRateX10(final int type){
		if(type ==0){
			血條倍率 = true;
		}else{
			血條倍率 = false;
		}
		_type[5] = type;
	}
}
